package com.wusir.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

/**
 * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/11/20 11:32
 * @description: SpringMVC的上下文配置文件
 */
@EnableWebMvc
@Configuration
@ComponentScan(basePackages = {"com.wusir.controller", "com.wusir.service"})
public class WebJavaConfig implements WebMvcConfigurer {

    // 开启默认的Servlet处理器,静态资源处理器
    @Override
    public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
        configurer.enable();
    }

}


